<template>
  <l-pulldown :refresh="onRefresh">
    <h3 v-for="item in 80" :key="item">Dashboard-{{ item }}</h3>
  </l-pulldown>
</template>

<script>
export default {
  data() {
    return {
      isLoading: false
    }
  },
  methods: {
    onRefresh() {
      return new Promise((resolve, reject) => {
        setTimeout(() => {
          console.log('refresh')
          this.isLoading = true
          resolve(true)
        }, 2000)
      })
    }
  }
}
</script>
